package com.crc64.comm.serialcomm;

import gnu.io.SerialPort;

/**
 * Seri bağlantıda kullanılacak olan DataBit değeri.
 * 
 * @author Bora SAYINER
 * @since 07.10.2014
 * @version 1.0.0
 */
public enum DataBit {

	// @formatter:off
	DATA_BITS_5(SerialPort.DATABITS_5), 
	DATA_BITS_6(SerialPort.DATABITS_6), 
	DATA_BITS_7(SerialPort.DATABITS_7), 
	DATA_BITS_8(SerialPort.DATABITS_8);
	// @formatter:on

	private final int dataBit;

	private DataBit(final int dataBit) {
		this.dataBit = dataBit;
	}

	public int getDataBit() {
		return dataBit;
	}
}
